import request from '@/utils/request'

// 查询批量缴费列表
export function listCostBatch(query) {
  return request({
    url: '/fund/costBatch/list',
    method: 'get',
    params: query
  })
}

// 查询批量缴费详细
export function getCostBatch(batchId) {
  return request({
    url: '/fund/costBatch/' + batchId,
    method: 'get'
  })
}

// 新增批量缴费
export function addCostBatch(data) {
  return request({
    url: '/fund/costBatch',
    method: 'post',
    data: data
  })
}

// 修改批量缴费
export function updateCostBatch(data) {
  return request({
    url: '/fund/costBatch',
    method: 'put',
    data: data
  })
}

// 删除批量缴费
export function delCostBatch(batchId) {
  return request({
    url: '/fund/costBatch/' + batchId,
    method: 'delete'
  })
}

// 获取小区信息
export function getAreaInfo() {
  return request({
    url: '/house/area/list1',
    method: 'get'
  })
}

// 获取小区信息
export function listCostBatchDetail(batchId) {
  return request({
    url: '/fund/costBatchDetail/getDetail/'+batchId,
    method: 'get'
  })
}

// 执行批量缴费
export function executeCostBatch(batchIds,costDate) {
  return request({
    url: '/fund/costBatch/executeCostBatch/'+batchIds+'/'+costDate,
    method: 'get'
  })
}


